package com.chushouya.order.service.api;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import com.chushouya.order.dao.entity.OrderEntity;
import com.chushouya.order.dto.api.clerk.action.ClerkOrderAction;

import java.util.List;

/**
 * 业务员订单操作控制业务
 */
public interface ClerkOrderActionCtrlApiService {

    /**
     * 订单操作列表
     */
    List<ClerkOrderAction> orderActions(Long orderId, Long clerkId);

    /**
     * 订单操作许可验证
     * @param orderAction 操作
     * @param orderEntity 订单
     */
    void actionExecuteCheck(ClerkOrderActionEnum orderAction, OrderEntity orderEntity);

}
